//
//  NWBaseModel.m
//  World
//
//  Created by longsan on 15/10/24.
//  Copyright © 2015年 小虫. All rights reserved.
//

#import "NWResultBaseModel.h"

@implementation NWResultBaseModel
- (instancetype)init
{
    self = [super init];
    if (self) {
        _rstArray = [NSMutableArray arrayWithCapacity:0];
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"rst"]) {
        for (NSDictionary *dict in value) {
            NWRstBaseModel *model = [[NWRstBaseModel alloc] init];
            [model setValuesForKeysWithDictionary:dict];
            [self.rstArray addObject:model];
        }
    }else{
        [super setValue:value forKey:key];
    }
}


- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
@end
